function Logger() {

};
// ////////static variable////////////////
/**
 * log info type
 */
Logger.logInfoType = {
	common : 1,// common info
	warning : 2,// warning info
	error : 3,// error info
	debug : 4
};
// ////////static methods////////////////
/**
 * do log
 * 
 * @param {int}
 *            infoType
 * @param {string}
 *            info
 */
Logger.doLog = function(infoType, title, content, type) {
	var logger = Ext.getCmp('ide_logger');
	var ideConsole = Ext.getCmp('ide_console');
	if (Util.logCount == Util.logMaxCount) {
		logger.setHtml('');
		Util.logCount = 1;
	}
	if (Util.consoleCount == Util.logMaxCount) {
		ideConsole.setHtml('');
		Util.consoleCount = 1;
	}
	var oldHtml = logger.getHtml();
	content = content.substring(3);
	var color = infoType == Logger.logInfoType.common
			? '#769139'
			: infoType == Logger.logInfoType.warning
					? '#F5BE3A'
					: infoType == Logger.logInfoType.debug ? '#769139' : 'red';
	if (oldHtml == null || oldHtml == '') {
		logger.setHtml('<b>' + title + ':</b><font color="' + color + '">'
				+ content + '</font><br/>');
	} else {
		logger.setHtml(oldHtml + '<b>' + title + ':</b><font color="' + color
				+ '">' + content + '</font><br/>');
	}
	if (type == 1) {
		var consoleOld = ideConsole.getHtml();
		if (consoleOld == null || consoleOld == '') {
			ideConsole.setHtml('<b>' + title + ':</b><font color="' + color
					+ '">' + content + '</font><br/>');
		} else {
			ideConsole.setHtml(consoleOld + '<b>' + title
					+ ':</b><font color="' + color + '">' + content
					+ '</font><br/>');
		}
		Util.consoleCount++;
		ideConsole.getScrollable().getScroller().scrollToEnd();
	}
	var scroller = logger.getScrollable().getScroller();
	scroller.scrollToEnd();
	Util.logCount++;
};